//
//  NoticeFilterContentView.swift
//  PropertyCommunity
//
//  Created by benwang on 2021/7/4.
//

import UIKit

class NoticeFilterContentView: UIView {
  @IBOutlet weak var numberLabel: UILabel!
  @IBOutlet weak var typeWrapper: UIStackView!
  @IBOutlet weak var tagWrapper: UIStackView!
  @IBOutlet weak var resultWrapper: UIStackView!
  @IBOutlet weak var contentWrapper: UIStackView!

  override func awakeFromNib() {
    super.awakeFromNib()

//    resultWrapper.isHidden = true
  }

  func update(type: NoticeListType) {
    if type == .trialed {
      resultWrapper.isHidden = false
//      contentWrapper
//        .removeArrangedSubview(resultWrapper)
      layoutIfNeeded()
    }
  }

  /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */

}
